#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import os
import shutil

fsrc = "/opt/drs/ccu"
fdst = "/tmp/ccu"

shutil.copytree(fsrc, fdst, ignore=shutil.ignore_patterns("wrapper.*", "*.log"))
shutil.make_archive(base_name="{}".format(os.path.join("/tmp", "ccu_archive")), format="tar", root_dir=fdst)
shutil.rmtree(fdst)
